package com.cloudxingkong.dianyinke.NewTeacher.Utils;

import android.content.Context;
import android.content.Intent;
import android.view.View;

/**
 * Created by 云星空科技 on 2016/3/21.
 */
public class GeneralClickListener implements View.OnClickListener {
    private Context context;
    private Class<?> className;

    public GeneralClickListener(Context context, Class<?> className) {
        this.context = context;
        this.className = className;
    }

    @Override
    public void onClick(View v) {
        Intent intent=new Intent(context,className);
        context.startActivity(intent);
    }
}
